var mySwiper = new Swiper ('.swiper2', {
    direction: 'horizontal', // 垂直切换选项
    loop: true, 
    
    autoplay:true,
    
    // 如果需要分页器
    pagination: {
      el: '.swiper-pagination',
      clickable :true,
      
    },   
    // 如果需要前进后退按钮
    navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },
    
    
  })  



  for(i=0;i<mySwiper.pagination.bullets.length;i++){
    mySwiper.pagination.bullets[i].onmouseover=function(){
      this.click();
    };
  } 
  
  
  //如果你在swiper初始化后才决定使用clickable，可以这样设置
  mySwiper.params.pagination.clickable = true ;
  //此外还需要重新初始化pagination
  mySwiper.pagination.destroy()
  mySwiper.pagination.init()
  mySwiper.pagination.bullets.eq(0).addClass('swiper-pagination-bullet-active');



// console.log(document.querySelector('.swiper-containerone'))

  var swiper = new Swiper('.swiper-containerone', {
    slidesPerView: 4,
    // spaceBetween: 5,
    slidesPerGroup: 4,

    loop: true,
    loopFillGroupWithBlank: true,
    // pagination: {
    //   el: '.swiper-pagination1',
    //   clickable: true,
    // },
    navigation: {
      nextEl: '.swiper-button-next1',
      prevEl: '.swiper-button-prev1',
    },
  });